<template>
  <VAssessContent title="考核编辑" :id="id" :flat="flat"></VAssessContent>
</template>
<script setup lang="ts">
import { watch } from 'vue'
import { ref } from 'vue'
import { useRoute } from 'vue-router'
import VAssessContent from './AssessContent.vue'

const route = useRoute()
const id = ref()
const flat = ref()

watch(
  () => route,
  async () => {
    if (route.path == '/OA/Assess/AssessUpdate' && route.query.id) {
      id.value = route.query.id
      flat.value = route.query.flat || false
    }
  },
  { deep: true, immediate: true }
)
</script>
